-
Notifications
You must be signed in to change notification settings - Fork 14
Add enum ElectricalComponentControlMode
#307
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Add enum ElectricalComponentControlMode
#307
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Copilot reviewed 1 out of 1 changed files in this pull request and generated 1 comment.
Comments suppressed due to low confidence (1)
proto/frequenz/api/common/v1/microgrid/electrical_components/electrical_components.proto:126
- Consider replacing 'upstream' with 'downstream' for consistency with the PR description and to avoid confusion about the intended audience for the component's availability.
// component availability to upstream services and applications.
proto/frequenz/api/common/v1/microgrid/electrical_components/electrical_components.proto
Outdated
Show resolved
Hide resolved
2fbcdf0 to
d44aa3b
Compare
proto/frequenz/api/common/v1/microgrid/electrical_components/electrical_components.proto
Show resolved
Hide resolved
proto/frequenz/api/common/v1/microgrid/electrical_components/electrical_components.proto
Outdated
Show resolved
Hide resolved
proto/frequenz/api/common/v1/microgrid/electrical_components/electrical_components.proto
Outdated
Show resolved
Hide resolved
| // !!! example "Control Mode Change Impact" | ||
| // If a battery component's Control Mode is switched from ACTIVE to | ||
| // INACTIVE, it immediately becomes unavailable to downstream | ||
| // energy-management services, potentially disrupting scheduled |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Lets remove the "energy-management" part and just say "services and agents".
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Done
a3a3656 to
d23b50a
Compare
This enum is used to explicitly define whether an electrical component is intended to be active (enabled) or inactive (disabled). This intention directly determines the component's availability to downstream services and applications. Note that this enum differs from the `ElectricalComponentStatus` enum, which is used to report the actual operational state of the component. Signed-off-by: Tiyash Basu <[email protected]> # Conflicts: # RELEASE_NOTES.md # proto/frequenz/api/common/v1/microgrid/electrical_components/electrical_components.proto
The `ElectricalComponentStatus` enum has been removed in favour of the `ElectricalComponentControlMode` enum. Signed-off-by: Tiyash Basu <[email protected]> # Conflicts: # proto/frequenz/api/common/v1/microgrid/electrical_components/electrical_components.proto
49ac745
d23b50a to
49ac745
Compare
This enum is used to explicitly define whether an electrical component is intended to be active (enabled) or inactive (disabled). This intention directly determines the component's availability to downstream services and applications.
Note that this enum differs from the
ElectricalComponentStatusenum, which is used to report the actual operational state of the component.Thanks to @thomas-nicolai-frequenz for providing the original version.